package com.occludens.server;

import com.google.code.twig.ObjectDatastore;
import com.google.code.twig.annotation.AnnotationObjectDatastore;
import com.google.inject.Provider;

public class AnnotationObjectDatastoreProvider implements
		Provider<ObjectDatastore> {

	static {
		// datastore config
		
	}

	// don't index fields by default
	private Boolean indexed = false;

	// load just the first instances and their fields
	private int activationDepth = 2;

	public ObjectDatastore get() {
		ObjectDatastore datastore = new AnnotationObjectDatastore(indexed);

		datastore.setActivationDepth(activationDepth);

		return datastore;
	}

}
